<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>
<%
String path = request.getContextPath();
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<%@ include file="/pages/login/common.jsp" %>
<meta http-equiv="X-UA-Compatible" content="IE=8">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta content="B2B电商平台" name="description"/>
<meta content="B2B电商平台" name="keyword"/>

<title>B2B电商平台.店铺</title>
<link rel="stylesheet" type="text/css" href="<%=path %>/include/css/style.css" />
<link rel="stylesheet" type="text/css" href="<%=path %>/include/css/btn.css" />
<link rel="stylesheet" type="text/css" href="<%=path %>/include/css/themes.css" />
<link rel="stylesheet" href="<%=path%>/include/uploadify/uploadify.css" type="text/css"></link>
<link rel="stylesheet" href="<%=path%>/include/JQuery zTree v3.4/css/zTreeStyle/zTreeStyle.css">
<link rel="stylesheet" type="text/css" href="<%=path %>/include/css/register_icss.css" />
<link rel="stylesheet" type="text/css" href="<%=path %>/include/sweetalert/sweetalert.css" />
<link rel="stylesheet" type="text/css" href="<%=path %>/include/css/mmt_trading.css" />

<script type="text/javascript" src="<%=path %>/include/js/jquery-1.8.0.min.js"></script>
<script type="text/javascript" src="<%=path %>/include/js/icss.common.js"></script>
<script type="text/javascript" src="<%=path %>/include/js/icss.shop.apply.js"></script>
<script type="text/javascript" src="<%=path %>/include/js/cookies.js"></script>

<script type="text/javascript" src="<%=path%>/include/uploadify/jquery.uploadify-3.1.min.js"></script>
<script type="text/javascript" src="<%=path%>/include/uploadify/swfobject.js"></script>

<script type="text/javascript" src="<%=path %>/include/sweetalert/sweetalert.min.js"></script>
<script type="text/javascript" src="<%=path %>/include/sweetalert/sweetalert-dev.js"></script>

<style type="text/css">
body{}
table{border-collapse: collapse;}
tr{ 
    display:block; /*将tr设置为块体元素*/ 
    margin:10px;  /*设置tr间距为2px*/ 
}
td{height:30px; line-height:30px;}
.td1{
	width:100px;
	font-size:14px;
	text-align:right;
	vertical-align: middle;
}
.input1{
	width:200px;
	height:30px;
	line-height:30px;
	vertical-align:middle;
	float:left;
}
.select1{
	width: 196px;
    height: 30px;
}
.select2{
    height: 30px;
}
.promptBox{display:inline-block;height:30px;padding-left:5px;width:160px;white-space:nowrap; z-index:50; position:relative;}
.tips-errow{background-position:-296px -22px;color:#f52c2c;}
.tips-ok{background-position:-296px 14px;color:#666;}
.tipsCur{background-position:-296px -55px;color:#666;}
.approveDiv{float:right;color:blue;margin-right:10px;}

</style>
<script type="text/javascript">
	var approveStatus = '${approveStatus}';
//	var approveStatus = '1';
	$(function(){
		if(approveStatus == ''){
			$("#approveDiv").hide();
		}else if(approveStatus == 0){
			$("#approveDiv").html("审核状态：待审核");
			$("#btnDiv").hide();
			$('input,select,textarea',$('form[name="fm"]')).prop('readonly',true); 
		}else if(approveStatus == 1){
			$("#approveDiv").html("审核状态：审核通过");
			$("#btnDiv").hide();
			$('input,select,textarea',$('form[name="fm"]')).prop('readonly',true); 
		}else if(approveStatus == 2){
			$("#approveDiv").html("审核状态：审核不通过");
		}
		$("#fileupload1").uploadify({
			 "debug":false,
			 "swf":"<%=path%>/include/uploadify/uploadify.swf",
			 "uploader":"<%=path%>/upload/uploadPicHttp",
			 "cancelImg":"<%=path%>/include/uploadify/cancel.png",
			 "queueID":"fileQueue",
			 "fileObjName":"fileupload",
			 "formData":{"lll":"lll"},
			 "auto":true,
			 "multi":false,
			 "removeCompleted":true,
			 "progressData":"percentage", 
			 "buttonText":"正面照",
			 "width":"60",
			 "height":"22",
			 "simUploadLimit":3,
			 "fileSizeLimit":"10MB",
			 "queueSizeLimit":5,
			 "fileTypeDesc":"支持格式:jpg/gif/jpeg/png/bmp.",
			 "fileTypeExts":"*.jpg;*.gif;*.jpeg;*.png;*.bmp;",
			 "onUploadStart":function(b){
			 	
			 },
			 "onUploadSuccess":function(b,c,a){
 					if(c=="error"){
 						parent.swal("", "文件:"+b.name+"上传失败", "error");
 						return false;
 					} else if(c=="overSize"){
 						parent.swal("", "您上传的图片超出2M，请重新上传！", "error");
 						return false;
 					}
 					$("#idcardF").val(c);
 					$("#imgView1").attr("src", c);
 					if($.trim($("#idcardF").val()) != '' && $.trim($("#idcardB").val()) != ''){
	 					$("#idcardDiv").nextAll('div').find(".tips-errow").hide();
						$("#idcardDiv").nextAll('div').find(".tipsCur").hide();
						$("#idcardDiv").nextAll('div').find(".tips-ok").show();
 					}
 					
 			 },
			 onError:function(c,a,b){
			 	parent.swal("", "文件:"+b.name+"上传失败", "error");
			 },
			 onCancel:function(c,a,b){}
		});
		$("#fileupload2").uploadify({
			 "debug":false,
			 "swf":"<%=path%>/include/uploadify/uploadify.swf",
			 "uploader":"<%=path%>/upload/uploadPicHttp",
			 "cancelImg":"<%=path%>/include/uploadify/cancel.png",
			 "queueID":"fileQueue",
			 "fileObjName":"fileupload",
			 "formData":{"lll":"lll"},
			 "auto":true,
			 "multi":false,
			 "removeCompleted":true,
			 "progressData":"percentage", 
			 "buttonText":"反面照",
			 "width":"60",
			 "height":"22",
			 "simUploadLimit":3,
			 "fileSizeLimit":"10MB",
			 "queueSizeLimit":5,
			 "fileTypeDesc":"支持格式:jpg/gif/jpeg/png/bmp.",
			 "fileTypeExts":"*.jpg;*.gif;*.jpeg;*.png;*.bmp;",
			 "onUploadStart":function(b){
			 	
			 },
			 "onUploadSuccess":function(b,c,a){
					if(c=="error"){
						parent.swal("", "文件:"+b.name+"上传失败", "error");
						return false;
					} else if(c=="overSize"){
						parent.swal("", "您上传的图片超出2M，请重新上传！", "error");
						return false;
					}
					$("#idcardB").val(c);
					$("#imgView2").attr("src", c);
					$("#idcardB").parent().nextAll().find(".tips-ok").hide();
					$("#idcardB").parent().nextAll().find(".tips-errow").hide();
					$("#idcardB").parent().nextAll().find(".tipsCur").show();
					if($.trim($("#idcardF").val()) != '' && $.trim($("#idcardB").val()) != ''){
	 					$("#idcardDiv").nextAll('div').find(".tips-errow").hide();
						$("#idcardDiv").nextAll('div').find(".tipsCur").hide();
						$("#idcardDiv").nextAll('div').find(".tips-ok").show();
 					}
					
 			 },
			 onError:function(c,a,b){
			 	parent.swal("", "文件:"+b.name+"上传失败", "error");
			 },
			 onCancel:function(c,a,b){}
		});
		$("#fileupload3").uploadify({
			 "debug":false,
			 "swf":"<%=path%>/include/uploadify/uploadify.swf",
			 "uploader":"<%=path%>/upload/uploadPicHttp",
			 "cancelImg":"<%=path%>/include/uploadify/cancel.png",
			 "queueID":"fileQueue",
			 "fileObjName":"fileupload",
			 "formData":{"lll":"lll"},
			 "auto":true,
			 "multi":false,
			 "removeCompleted":true,
			 "progressData":"percentage", 
			 "buttonText":"店铺logo",
			 "width":"60",
			 "height":"22",
			 "simUploadLimit":3,
			 "fileSizeLimit":"10MB",
			 "queueSizeLimit":5,
			 "fileTypeDesc":"支持格式:jpg/gif/jpeg/png/bmp.",
			 "fileTypeExts":"*.jpg;*.gif;*.jpeg;*.png;*.bmp;",
			 "buttonClass":"uploadify-button",
			 "onUploadStart":function(b){
			 	
			 },
			 "onUploadSuccess":function(b,c,a){
					if(c=="error"){
						parent.swal("", "文件:"+b.name+"上传失败", "error");
						return false;
					} else if(c=="overSize"){
						parent.swal("", "您上传的图片超出2M，请重新上传！", "error");
						return false;
					}
					$("#shopLogo").val(c);
					$("#imgView3").attr("src", c); 
					if($.trim($("#shopLogo").val()) != ''){
						$("#shopLogoDiv").nextAll('div').find(".tips-errow").hide();
						$("#shopLogoDiv").nextAll('div').find(".tipsCur").hide();
						$("#shopLogoDiv").nextAll('div').find(".tips-ok").show();
					}
 			 },
			 onError:function(c,a,b){
			 	parent.swal("", "文件:"+b.name+"上传失败", "error");
			 },
			 onCancel:function(c,a,b){}
		});
		$("#fileupload4").uploadify({
			 "debug":false,
			 "swf":"<%=path%>/include/uploadify/uploadify.swf",
			 "uploader":"<%=path%>/upload/uploadPicHttp",
			 "cancelImg":"<%=path%>/include/uploadify/cancel.png",
			 "queueID":"fileQueue",
			 "fileObjName":"fileupload",
			 "formData":{"lll":"lll"},
			 "auto":true,
			 "multi":false,
			 "removeCompleted":true,
			 "progressData":"percentage", 
			 "buttonText":"宣传图片",
			 "width":"60",
			 "height":"22",
			 "simUploadLimit":3,
			 "fileSizeLimit":"10MB",
			 "queueSizeLimit":5,
			 "fileTypeDesc":"支持格式:jpg/gif/jpeg/png/bmp.",
			 "fileTypeExts":"*.jpg;*.gif;*.jpeg;*.png;*.bmp;",
			 "buttonClass":"uploadify-button",
			 "onUploadStart":function(b){
			 	
			 },
			 "onUploadSuccess":function(b,c,a){
					if(c=="error"){
						parent.swal("", "文件:"+b.name+"上传失败", "error");
						return false;
					} else if(c=="overSize"){
						parent.swal("", "您上传的图片超出2M，请重新上传！", "error");
						return false;
					}
					$("#shopPic").val(c);
					$("#imgView4").attr("src", c);
					if($.trim($("#shopPic").val()) != ''){
						$("#shopPicDiv").nextAll('div').find(".tips-errow").hide();
						$("#shopPicDiv").nextAll('div').find(".tipsCur").hide();
						$("#shopPicDiv").nextAll('div').find(".tips-ok").show();
					}
 			 },
			 onError:function(c,a,b){
			 	parent.swal("", "文件:"+b.name+"上传失败", "error");
			 },
			 onCancel:function(c,a,b){}
		});
		$("#fileupload5").uploadify({
			 "debug":false,
			 "swf":"<%=path%>/include/uploadify/uploadify.swf",
			 "uploader":"<%=path%>/upload/uploadPicHttp",
			 "cancelImg":"<%=path%>/include/uploadify/cancel.png",
			 "queueID":"fileQueue",
			 "fileObjName":"fileupload",
			 "formData":{"lll":"lll"},
			 "auto":true,
			 "multi":false,
			 "removeCompleted":true,
			 "progressData":"percentage", 
			 "buttonText":"上传",
			 "width":"60",
			 "height":"22",
			 "simUploadLimit":3,
			 "fileSizeLimit":"10MB",
			 "queueSizeLimit":5,
			 "fileTypeDesc":"支持格式:jpg/gif/jpeg/png/bmp.",
			 "fileTypeExts":"*.jpg;*.gif;*.jpeg;*.png;*.bmp;",
			 "buttonClass":"uploadify-button",
			 "onUploadStart":function(b){
			 	
			 },
			 "onUploadSuccess":function(b,c,a){
					if(c=="error"){
						parent.swal("", "文件:"+b.name+"上传失败", "error");
						return false;
					} else if(c=="overSize"){
						parent.swal("", "您上传的图片超出2M，请重新上传！", "error");
						return false;
					}
					$("#businessLicense").val(c);
					$("#imgView5").attr("src", c);
					if($.trim($("#businessLicense").val()) != ''){
						$("#businessLicenseDiv").nextAll('div').find(".tips-errow").hide();
						$("#businessLicenseDiv").nextAll('div').find(".tipsCur").hide();
						$("#businessLicenseDiv").nextAll('div').find(".tips-ok").show();
					}
 			 },
			 onError:function(c,a,b){
			 	parent.swal("", "文件:"+b.name+"上传失败", "error");
			 },
			 onCancel:function(c,a,b){}
		});
		
	})
	
	function saveShop(){
		if(_checkAllReady()){
			$.ajax({
	              cache: true,
	              type: "POST",
	              url:'<%=path%>/shopApply/saveShop.do',
	              data:$('#fm').serialize(),
	              async: false,
	              error: function(request) {
	            //     $.messager.alert('消息提醒','提交失败!');  	
	                 parent.swal("", "提交失败!", "error");
	              },
	              success: function(data) {
					data = eval('(' + data + ')');
					var msg = data.msg;
	                   if(data.success){
						parent.swal("", msg, "success");
	                    window.location.href = '<%=path %>/shopManage/toShopInfo.do';
					}else {
						parent.swal("", msg, "error");
					}
	              }
	         });
		}
	}
	function _changeProvince(obj){
		var areaCode = $('#ProvinceCode option:selected').val();
		var ifzxs = $('#ProvinceCode option:selected').attr('class');
		if(ifzxs=="0"){
			$.ajax({
	              cache: true,
	              type: "POST",
	              url:'<%=path%>/shopApply/queryAreaList.do',
	              data:{areaPcode : areaCode},
	              async: false,
	              dataType : 'json',
	              error: function(request) {
	              },
	              success: function(data) {
	              	 if(data.success){
	              	 	var list = data.obj;
	              	 	if(list.length>0){
							$("#cityCode").empty();
							for(var i =0 ;i<list.length;i++){
								var info = list[i];
								console.info(info);
								var AREA_CODE = info.AREA_CODE;
								var AREA_NAME = info.AREA_NAME;
								var AREA_PCODE = info.AREA_PCODE;
								var IF_ZXS = info.IF_ZXS;
								if(areaCode==AREA_PCODE){
									$("#cityCode").append("<option value='"+AREA_CODE+"'>"+AREA_NAME+"</option>");
								}
							}
							$("#cityCode").show();
						}
	              	 }
	              }
	        })
			
		}
	}
</script>
</head>
<body style="font-family: '微软雅黑'">
	<div id="contentDiv" style="padding:5px; width:99%;margin: 0px;">
		<div style="width:100%;height:30px;border-bottom:1px solid #ADADAD;">
			<div class="toptil">开店申请</div>
	 		<div id="approveDiv" class="approveDiv">
	 		</div>
		</div>
		<form id="fm" name="fm" class="form-horizontal form-validate" method="post" action="" novalidate="novalidate">
			<input type="hidden" id="approveStatus" name="approveStatus" value="${approveStatus}">
			<input type="hidden" id="shopId" name="shopId" value="${shopMap.SHOP_ID }">
			<input type="hidden" id="curPath" name="curPath" value="<%=path %>">
			<div style="width:100%;margin-top:20px;margin-left:10px;">
				<table style="width:100%;">
					<tr>
						<td class="td1" nowrap>店铺名称：</td>
						<td class="rightTd" nowrap>
							<input class="input1" id="shopName" name="shopName" value="${shopMap.SHOP_NAME }">
							<div class="promptBox">
	                       		<div class='tips-errow' style="display:none;">店铺名称已存在</div>
	                       		<div class='tips-ok' style="display:none;"></div>
	                       		<div class='tipsCur' style="display:none;">请输入店铺名称</div>
	                       	</div>
						</td>
					</tr>
					<tr>
						<td class="td1" nowrap>法人姓名：</td>
						<td class="rightTd" nowrap>
							<input class="input1" id="legalPerson" name="legalPerson" value="${shopMap.LEGAL_PERSON }">
							<div class="promptBox">
	                       		<div class='tips-errow' style="display:none;">法人姓名已存在</div>
	                       		<div class='tips-ok' style="display:none;"></div>
	                       		<div class='tipsCur' style="display:none;">请输入法人姓名</div>
	                       	</div>
						</td>
					</tr>
					<tr>
						<td class="td1" nowrap>店铺地址：</td>
						<td class="rightTd" nowrap>
							<input class="input1" id="shopAddr" name="shopAddr" value="${shopMap.SHOP_ADDRESS }">
							<div class="promptBox">
		                   		<div class='tips-errow' style="display:none;">请输入店铺地址</div>
		                   		<div class='tips-ok' style="display:none;"></div>
		                   		<div class='tipsCur' style="display:none;">请输入店铺地址</div>
		                   	</div>
						</td>
					</tr>
					<tr>
						<td class="td1" nowrap>店铺电话：</td>
						<td class="rightTd" nowrap>
							<input class="input1" id="shopTel" name="shopTel" value="${shopMap.SHOP_TEL }">
							<div class="promptBox">
		                   		<div class='tips-errow' style="display:none;">请输入店铺电话</div>
		                   		<div class='tips-ok' style="display:none;"></div>
		                   		<div class='tipsCur' style="display:none;">请输入店铺电话</div>
		                   	</div>	
						</td>
					</tr>
					<tr>
						<td class="td1" nowrap style="vertical-align:top;width:100px;">店铺详情：</td>
						<td class="rightTd" nowrap>
							<textarea id="shopDesc" name="shopDesc" style="width: 300px; height: 80px; resize: none;">${shopMap.SHOP_DESC }</textarea>
							<div class="promptBox">
		                   		<div class='tips-errow' style="display:none;">请输入店铺详情</div>
		                   		<div class='tips-ok' style="display:none;"></div>
		                   		<div class='tipsCur' style="display:none;">请输入店铺详情</div>
		                   	</div>	
						</td>
					</tr>
					<tr>
						<td class="td1"  nowrap style="vertical-align:top;">身份证：</td>
						<td class="rightTd" id="td1" nowrap>
							<div id="idcardDiv" style=";float:left;margin-right:10px;text-align:center;">
								<div id="imgDiv1" style="margin-bottom:10px;">
									<img src="${shopMap.IDCARD_NO_PIC_F }"
										id="imgView1" style="height: 75px; width: 100px;">
									<!-- 
									<a href="javascript:deletePic()">删除</a>
									 -->
								</div>
								<div style="text-align:center;margin:0 18px;">
									<input id="fileupload1" type="file" name="fileupload" multiple class="input-medium" />
								</div>
								<input id="idcardF" name="idcardF" type="hidden" value="${shopMap.IDCARD_NO_PIC_F }">
							</div>
							<div style="float:left;text-align:center;">
								<div id="imgDiv2" style="margin-bottom:10px;">
									<img src="${shopMap.IDCARD_NO_PIC_B }"
										id="imgView2" style="height: 75px; width: 100px;">
									<!-- 
									<a href="javascript:deletePic()">删除</a>
									 -->
								</div>
								<div style="text-align:center;margin:0 18px;">
									<input id="fileupload2" type="file" name="fileupload" multiple class="input-medium" />
								</div>
								<input id="idcardB" name="idcardB" type="hidden" value="${shopMap.IDCARD_NO_PIC_B }">
							</div>
							<div class="promptBox">
		                   		<div class='tips-errow' style="display:none;">请上传身份证正/反面照片</div>
		                   		<div class='tips-ok' style="display:none;"></div>
		                   		<div class='tipsCur' style="display:none;">请上传身份证正/反面照片</div>
		                   	</div>	
						</td>
					</tr>
					<tr>
						<td class="td1" nowrap style="vertical-align:top;">店铺图片：</td>
						<td class="rightTd" nowrap style="vertical-align:top;">
							<div id="shopPicDiv" style="float:left;margin-right:10px;text-align:center;">
								<div id="imgDiv3" style="margin-bottom:10px;">
									<img src="${shopMap.SHOP_LOGO }"
										id="imgView3" style="height: 75px; width: 100px;">
								</div>
								<div style="text-align:center;margin:0 18px;">
									<input id="fileupload3" type="file" name="fileupload" multiple class="input-medium" />
								</div>
								<input id="shopLogo" name="shopLogo" type="hidden" value="${shopMap.SHOP_LOGO }">
							</div>
							<div id="shopPicDiv" style="float:left;text-align:center;">
								<div id="imgDiv4" style="margin-bottom:10px;">
									<img src="${shopMap.SHOP_PIC }"
										id="imgView4" style="height: 75px; width: 100px;">
									<!-- 
									<a href="javascript:deletePic()">删除</a>
									 -->
								</div>
								<div style="text-align:center;margin:0 18px;">
									<input id="fileupload4" type="file" name="fileupload" multiple class="input-medium" />
								</div>
								<input id="shopPic" name="shopPic" type="hidden" value="${shopMap.SHOP_PIC }">
							</div>
							<div class="promptBox">
		                   		<div class='tips-errow' style="display:none;">请上传店铺图片</div>
		                   		<div class='tips-ok' style="display:none;"></div>
		                   		<div class='tipsCur' style="display:none;">请上传店铺图片</div>
		                   	</div>	
						</td>
					<tr>
						<td class="td1" nowrap style="vertical-align:top;">营业执照：</td>
						<td class="rightTd" nowrap>
							<div id="businessLicenseDiv" style="float:left;text-align:center;">
								<div id="imgDiv5" style="margin-bottom:10px;">
									<img src="${shopMap.BUSINESS_LICENSE }"
										id="imgView5" style="height: 75px; width: 100px;">
									<!-- 
									<a href="javascript:deletePic()">删除</a>
									 -->
								</div>
								<div style="text-align:center;margin:0 18px;">
									<input id="fileupload5" type="file" name="fileupload" multiple class="input-medium" />
								</div>
								<input id="businessLicense" name="businessLicense" type="hidden" value="${shopMap.BUSINESS_LICENSE }">
							</div>
							<div class="promptBox">
		                   		<div class='tips-errow' style="display:none;">请上传营业执照</div>
		                   		<div class='tips-ok' style="display:none;"></div>
		                   		<div class='tipsCur' style="display:none;">请上传营业执照</div>
		                   	</div>	
						</td>
					</tr>
					<tr>
						<td class="td1" nowrap style="vertical-align:top;width:100px;">经营范围：</td>
						<td class="rightTd" nowrap>
							<textarea id="businessScope" name="businessScope" style="width: 300px; height: 80px; resize: none;">${shopMap.BUSINESS_SCOPE }</textarea>
							<div class="promptBox">
		                   		<div class='tips-errow' style="display:none;">请输入经营范围</div>
		                   		<div class='tips-ok' style="display:none;"></div>
		                   		<div class='tipsCur' style="display:none;">请输入经营范围</div>
		                   	</div>	
						</td>
						
					</tr>
					<tr>
					</tr>
						<td class="td1" nowrap>开户银行：</td>
						<td class="rightTd" nowrap>
							<select class="select1" id="bankCode" name="bankCode">
							<option value="">---请选择---</option>
							<c:forEach items="${bankList}" var="bank" > 
							<c:if test="${bank.BANK_CODE eq shopMap.BANK_CODE }">
							<option value="<c:out value='${bank.BANK_CODE }'/>" SELECTED><c:out value='${bank.BANK_NAME }'/></option>
							</c:if>
							<c:if test="${bank.BANK_CODE ne shopMap.BANK_CODE }">
							<option value="<c:out value='${bank.BANK_CODE }'/>" ><c:out value='${bank.BANK_NAME }'/></option>
							</c:if>
							</c:forEach>
							</select>
							<div class="promptBox">
	                       		<div class='tips-errow' style="display:none;">开户银行已存在</div>
	                       		<div class='tips-ok' style="display:none;"></div>
	                       		<div class='tipsCur' style="display:none;">请选择开户银行</div>
	                       	</div>
						</td>
					<tr>
						<td class="td1" nowrap>开户银行城市：</td>
						<td class="rightTd" nowrap>
							<select class="select2" id="ProvinceCode" name="ProvinceCode" onchange="_changeProvince(this)">
							<option value=""  >---请选择---</option>
							<c:forEach items="${provinceList}" var="province" > 
							<c:if test="${province.AREA_CODE eq shopMap.BANK_PROVINCE and province.LEVEL eq '2' }">
							<option value="<c:out value='${province.AREA_CODE }'/>" class="<c:out value='${province.IF_ZXS }'/>" SELECTED><c:out value='${province.AREA_NAME }'/></option>
							</c:if>
							<c:if test="${province.AREA_CODE ne shopMap.BANK_PROVINCE and province.LEVEL eq '2' }">
							<option value="<c:out value='${province.AREA_CODE }'/>" class="<c:out value='${province.IF_ZXS }'/>" ><c:out value='${province.AREA_NAME }'/></option>
							</c:if>
							</c:forEach>
							</select>
							<select class="select2" id="cityCode" name="cityCode" style="display:none;" >
							</select>
							<div class="promptBox">
	                       		<div class='tips-errow' style="display:none;">开户银行城市已存在</div>
	                       		<div class='tips-ok' style="display:none;"></div>
	                       		<div class='tipsCur' style="display:none;">请选择开户银行城市</div>
	                       	</div>
						</td>
					</tr>
					<tr>
						<td class="td1" nowrap>开户人姓名：</td>
						<td class="rightTd" nowrap>
							<input class="input1" id="bankAccountName" name="bankAccountName" value="${shopMap.BANK_ACCOUNT_NAME }">
							<div class="promptBox">
	                       		<div class='tips-errow' style="display:none;">开户人姓名已存在</div>
	                       		<div class='tips-ok' style="display:none;"></div>
	                       		<div class='tipsCur' style="display:none;">请输入开户人姓名</div>
	                       	</div>
						</td>
					</tr>
					<tr>
						<td class="td1" nowrap>对公账户：</td>
						<td class="rightTd" nowrap>
							<input class="input1" id="bankAccount" name="bankAccount" value="${shopMap.BANK_ACCOUNT }">
							<div class="promptBox">
	                       		<div class='tips-errow' style="display:none;">对公账户不符合规则</div>
	                       		<div class='tips-ok' style="display:none;"></div>
	                       		<div class='tipsCur' style="display:none;">请输入对公账户</div>
	                       	</div>
						</td>
					</tr>
					<tr>
						<td>&nbsp;</td>
						<td style="">
							<div id="btnDiv">
								<a onclick="saveShop();" class="btn btn-primary" style="text-decoration:none;">提交</a>
							</div>
						</td>
						<td>&nbsp;</td>
						<td>&nbsp;</td>
					</tr>
				</table>
			</div>
		</form>
	</div>
</body>
<script type="text/javascript">
	$(document).ready(function(){
		_reHeight();
	});
	function _reHeight(){
		var main = $(window.parent.document).find("#rightFrame");
		var mainheight = $("#contentDiv").height();
		main.height(mainheight);
	}
	
</script>
</html>
